/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Cfop.findAll", query = "SELECT c FROM Cfop c")})
public class Cfop implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    private Integer cfop;
    @Lob
    @Column(length = 65535)
    private String descricao;
    @Lob
    @Column(length = 65535)
    private String aplicacao;
    @Column(name = "MOVIMENTA_ESTOQUE")
    private Character movimentaEstoque;
    @Column(name = "TIPO_OPERACAO")
    private Character tipoOperacao;
    private Character origem;
    @Column(name = "ALTERA_CUSTO_PRODUTO")
    private Character alteraCustoProduto;
    @Column(name = "MOVIMENTA_FINANCEIRO")
    private Character movimentaFinanceiro;
    @Column(name = "PERMITE_CREDITO_ICMS")
    private Character permiteCreditoIcms;
    @Column(name = "PERMITE_CREDITO_IPI")
    private Character permiteCreditoIpi;
    @Column(name = "PERMITE_CREDITO_PIS")
    private Character permiteCreditoPis;
    @Column(name = "PERMITE_CREDITO_COFINS")
    private Character permiteCreditoCofins;

    public Cfop() {
    }

    public Cfop(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCfop() {
        return cfop;
    }

    public void setCfop(Integer cfop) {
        this.cfop = cfop;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public String getAplicacao() {
        return aplicacao;
    }

    public void setAplicacao(String aplicacao) {
        this.aplicacao = aplicacao;
    }

    public Character getMovimentaEstoque() {
        return movimentaEstoque;
    }

    public void setMovimentaEstoque(Character movimentaEstoque) {
        this.movimentaEstoque = movimentaEstoque;
    }

    public Character getTipoOperacao() {
        return tipoOperacao;
    }

    public void setTipoOperacao(Character tipoOperacao) {
        this.tipoOperacao = tipoOperacao;
    }

    public Character getOrigem() {
        return origem;
    }

    public void setOrigem(Character origem) {
        this.origem = origem;
    }

    public Character getAlteraCustoProduto() {
        return alteraCustoProduto;
    }

    public void setAlteraCustoProduto(Character alteraCustoProduto) {
        this.alteraCustoProduto = alteraCustoProduto;
    }

    public Character getMovimentaFinanceiro() {
        return movimentaFinanceiro;
    }

    public void setMovimentaFinanceiro(Character movimentaFinanceiro) {
        this.movimentaFinanceiro = movimentaFinanceiro;
    }

    public Character getPermiteCreditoIcms() {
        return permiteCreditoIcms;
    }

    public void setPermiteCreditoIcms(Character permiteCreditoIcms) {
        this.permiteCreditoIcms = permiteCreditoIcms;
    }

    public Character getPermiteCreditoIpi() {
        return permiteCreditoIpi;
    }

    public void setPermiteCreditoIpi(Character permiteCreditoIpi) {
        this.permiteCreditoIpi = permiteCreditoIpi;
    }

    public Character getPermiteCreditoPis() {
        return permiteCreditoPis;
    }

    public void setPermiteCreditoPis(Character permiteCreditoPis) {
        this.permiteCreditoPis = permiteCreditoPis;
    }

    public Character getPermiteCreditoCofins() {
        return permiteCreditoCofins;
    }

    public void setPermiteCreditoCofins(Character permiteCreditoCofins) {
        this.permiteCreditoCofins = permiteCreditoCofins;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cfop)) {
            return false;
        }
        Cfop other = (Cfop) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.Cfop[ id=" + id + " ]";
    }
    
}
